﻿@inherits TestComponentBase

<Fixture Test="Test">
    <ComponentUnderTest>
        <NoArgs/>
        <CascadingValue Value="theme">
            <ThemedButton><NoArgs /></ThemedButton>
        </CascadingValue>
    </ComponentUnderTest>
</Fixture>

@code {
    private ThemeInfo theme = new ThemeInfo { Value = "btn btn-secondary" };

    void Test()
    {
        var cut = GetComponentUnderTest<ThemedButton>();
        cut.Find("button").ClassList.ShouldContain("btn");
    }
}